import Vue from "vue";
import hljs from "highlight.js";
// 指定高亮显示的主题
import "highlight.js/styles/atom-one-dark.css";

// 自定义高亮指定
Vue.directive("hlzl", (el) => {
  let selectorAll = el.querySelectorAll("pre code");
  selectorAll.forEach((item) => {
    hljs.highlightBlock(item)
  });
});
